package cn.edu.just.firstjavaapp.l16;

import java.io.*;

class AccessFileWrite {

    public static void main(String[] args) throws IOException {
        DataOutputStream out = null;
        try {
            out = new DataOutputStream(new BufferedOutputStream(
                    new FileOutputStream("c:/java/AccessDataFile.dat")));
            
            for (int i = 0; i < 100; i++) {
                out.writeInt(i * 3);
            }
        } finally {
            out.close();
        }
    }
}
